package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 还款业务类型
 * @author bincun
 *
 */
@AllArgsConstructor
@Getter
public enum RepayAmountTypeEnum {

	NORMAL_AMOUNT_REPAY((byte)1, "还款额=应还款额"),
    PART_AMOUNT((byte)2, "还款额<应还款额,APP逾期部分还款"),
    PART_AMOUNT_WITH_GUARANTEE ((byte)3, "垫付还款"),
    PART_AMOUNT_WITHOUT_GUARANTEE ((byte)4, "不垫付还款");
	

    private byte value;
    private String desc;

    public static RepayAmountTypeEnum enumOf(int value) {
        for (RepayAmountTypeEnum retEnum : values()) {
            if (retEnum.value == value) {
                return retEnum;
            }
        }
        return null;
    }
}
